package com.mvcplus.system.mapper;

import com.baomidou.mybatisplus.mapper.AutoMapper;
import com.mvcplus.system.bo.ResourceBo;
import com.mvcplus.system.model.SysResource;

import java.util.List;

/**
 *
 * SysResource 表数据库控制层接口
 *
 */
public interface SysResourceMapper extends AutoMapper<SysResource> {


    List<SysResource> selectResourceByRole(List<Long> roleIds);


    List<ResourceBo> seletTreebyRole(Long roleId);

    int deleteAllbyId(Long id);

    int deleteAllbyPid(Long pid);
}